import { createRouter, createWebHistory } from "vue-router";
import { isMobileTerminal } from "@/utils/flexible";
import moblieTerminalRoutes from "./modules/mobile-routes"
import pcTerminalRoutes from "./modules/pc-routes"

// 创建vueRouter实例对象
const router = createRouter({
    history: createWebHistory(), // 路由模式
    routes: isMobileTerminal.value ? moblieTerminalRoutes : pcTerminalRoutes, // 路由规则
})
export default router;